package com.ruoyi.application.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.application.mapper.AlgsAnimalApplicationMapper;
import com.ruoyi.application.domain.AlgsAnimalApplication;
import com.ruoyi.application.service.IAlgsAnimalApplicationService;

/**
 * 动物申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-17
 */
@Service
public class AlgsAnimalApplicationServiceImpl implements IAlgsAnimalApplicationService 
{
    @Autowired
    private AlgsAnimalApplicationMapper algsAnimalApplicationMapper;

    /**
     * 查询动物申请
     * 
     * @param animalApplicationId 动物申请主键
     * @return 动物申请
     */
    @Override
    public AlgsAnimalApplication selectAlgsAnimalApplicationByAnimalApplicationId(Long animalApplicationId)
    {
        return algsAnimalApplicationMapper.selectAlgsAnimalApplicationByAnimalApplicationId(animalApplicationId);
    }

    /**
     * 查询动物申请列表
     * 
     * @param algsAnimalApplication 动物申请
     * @return 动物申请
     */
    @Override
    public List<AlgsAnimalApplication> selectAlgsAnimalApplicationList(AlgsAnimalApplication algsAnimalApplication)
    {
        return algsAnimalApplicationMapper.selectAlgsAnimalApplicationList(algsAnimalApplication);
    }

    /**
     * 新增动物申请
     * 
     * @param algsAnimalApplication 动物申请
     * @return 结果
     */
    @Override
    public int insertAlgsAnimalApplication(AlgsAnimalApplication algsAnimalApplication)
    {
        Long aLong = Long.valueOf(101);
        algsAnimalApplication.setAnimalApplicationBy1(aLong);
        return algsAnimalApplicationMapper.insertAlgsAnimalApplication(algsAnimalApplication);
    }

    /**
     * 修改动物申请
     * 
     * @param algsAnimalApplication 动物申请
     * @return 结果
     */
    @Override
    public int updateAlgsAnimalApplication(AlgsAnimalApplication algsAnimalApplication)
    {
        return algsAnimalApplicationMapper.updateAlgsAnimalApplication(algsAnimalApplication);
    }

    /**
     * 批量删除动物申请
     * 
     * @param animalApplicationIds 需要删除的动物申请主键
     * @return 结果
     */
    @Override
    public int deleteAlgsAnimalApplicationByAnimalApplicationIds(Long[] animalApplicationIds)
    {
        return algsAnimalApplicationMapper.deleteAlgsAnimalApplicationByAnimalApplicationIds(animalApplicationIds);
    }

    /**
     * 删除动物申请信息
     * 
     * @param animalApplicationId 动物申请主键
     * @return 结果
     */
    @Override
    public int deleteAlgsAnimalApplicationByAnimalApplicationId(Long animalApplicationId)
    {
        return algsAnimalApplicationMapper.deleteAlgsAnimalApplicationByAnimalApplicationId(animalApplicationId);
    }
}
